
import 'dart:io';


import '../config/app_environment.dart';
import 'httpsClient.dart';
import '../services/user_utils.dart';
import '../services/utils.dart';
import 'api_service.dart';
import 'cookie_service.dart';



class NetRepository {

  Future<dynamic> login({
    required String mobile,
    required String code,
  }) async {
    Map<String, String> data = {};
    data['mobile'] = mobile;
    data['code'] = code;
    final result = await HttpsClient().post(
     ApiService.login,
      data: data,
    ) ??
        {};
    await CookieService.instance.ensureInitialized();
    final list = await CookieService.instance.cookieJar
        .loadForRequest(Uri.parse("${AppEnvironment.instance.baseUrl}${ApiService.login}"));
    myLog("登录接口的cookie list = ${list.toString()}");
    myLog("登录接口返回的结果 result = ${result.toString()}");
    // final entity = LoginEntity.fromJson(result);
    // return entity;
    return "";
  }









}
